import React from "react";
import { useNavigate } from "../react-router";

function Home(){
  const navigate = useNavigate();
  function navigateTo(){
    navigate("/profile");
  };
  return <div>
    <p>Home</p>
    <button onClick={navigateTo}>跳转到个人中心页</button>
  </div>
}

export default Home;
